package com.itljm.cxrMarket.utils;

import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author ljm
 * @date 2024/11/1 17:07
 */
public class WebUtils {
    public static String renderString(HttpServletResponse response, String valus){
        try{
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(valus);
        }catch (IOException e){
            e.printStackTrace();
        }

        return null;
    }
}
